package io_exercise;

import java.io.Serializable;
import java.util.Arrays;

public class Student1 implements Serializable {
    private String name1;
    private int age1;
    private String gender1;
    private transient String[] otherInfo1;

    public Student1() {
    }

    public Student1(String name1, int age1, String gender1, String[] otherInfo1) {
        this.name1 = name1;
        this.age1 = age1;
        this.gender1 = gender1;
        this.otherInfo1 = otherInfo1;
    }

    @Override
    public String toString() {
        return "Student1{" +
                "name1='" + name1 + '\'' +
                ", age1=" + age1 +
                ", gender1='" + gender1 + '\'' +
                ", otherInfo1=" + Arrays.toString(otherInfo1) +
                '}';
    }

    public String getName1() {
        return name1;
    }

    public void setName1(String name1) {
        this.name1 = name1;
    }

    public int getAge1() {
        return age1;
    }

    public void setAge1(int age1) {
        this.age1 = age1;
    }

    public String getGender1() {
        return gender1;
    }

    public void setGender1(String gender1) {
        this.gender1 = gender1;
    }

    public String[] getOtherInfo1() {
        return otherInfo1;
    }

    public void setOtherInfo1(String[] otherInfo1) {
        this.otherInfo1 = otherInfo1;
    }
}
